package lab02.Test30;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * Created by Administrator on 2017/11/8.
 */
public class Test30 {
    public static void main(String[] args) {
        System.out.println("请输入五门成绩：");
        List<Double> grade = new ArrayList<Double>();
        Scanner sc = new Scanner(System.in);
        double chinese = sc.nextDouble();
        double math = sc.nextDouble();
        double english = sc.nextDouble();
        double java = sc.nextDouble();
        double html = sc.nextDouble();
        grade.add(chinese);
        grade.add(math);
        grade.add(english);
        grade.add(java);
        grade.add(html);
        double sum=0;
        for (Double x : grade) {
            sum+=x;
        }
        for (Double y:grade){
            System.out.println(y);
        }
        System.out.println("平均为："+sum/grade.size());
    }
}